Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASE Calculator stress #26

Merged
merged 8 commits into from
Oct 18, 2022
Merged

ASE Calculator stress #26

merged 8 commits into from
Oct 18, 2022

Conversation

bernstei
Copy link
Collaborator

@bernstei bernstei commented Oct 3, 2022

Add stress (and free_energy) to MACECalculator.

PR comparison base should really be after merge of per_config_EFSV_weight, but that doesn't work because those are both in bernstei repo. Will adjust base repository if needed once #22 is merged.

closes #3
closes #31

Changes (mainly fixing bugs in testing for compute_virials vs. compute_stress) are necessary, but not sufficient, since it's not working yet.

Test is only an outline.
Required adding free_energy property, extracting stress from first
element of 1x3x3 numpy array, and explicitly dealing with missing
virials which can happen when pbc is False.
@bernstei
Copy link
Collaborator Author

@davkovacs @ilyes319 I personally think this is ready to go, but let me know what you think of the changes.

@davkovacs
Copy link
Collaborator

Looks good to me!

@ilyes319
Copy link
Contributor

Looks good to me! Merging.

@ilyes319 ilyes319 merged commit 53b1de5 into ACEsuit:develop Oct 18, 2022
This was referenced Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants